home *** CD-ROM | disk | FTP | other *** search
/ Enigma Amiga Life 109 / EnigmaAmiga109CD.iso / dalla rivista / netconnect3 / amirc_33 / install_amirc < prev    next >
Text File  |  1999-09-24  |  40KB  |  972 lines

  1. ;******************************************************************************
  2. ;        ____           ______ ______  ______
  3. ;       / __ \         /_  __// __  / / __  /
  4. ;      / /_/ /_   _     / /  / /_/ / / /  -'
  5. ;     / __  // \_/ \   / /  /   __/ / /
  6. ;    / / / // /__/ /__/ /_ / /\ \  / /___
  7. ;   /_/ /_//_/  /_//_____//_/  \_\ \____/   V3
  8. ;
  9. ; $VER: AmIRC_Installer 3.09 (24-Spetember-1998) 
  10. ; AmIRC ©1995,1996,1997,1998,1999 by Oliver Wagner
  11. ; AmIRC Installer by Robert C. Reiswig ©1995,1996,1997,1998,1999 
  12. ;
  13. ; If you wish to use any part of this installer you must ask. May not be 
  14. ; integrated/placed into any other package. Changes, suggestions or problems:
  15. ; AmIRC@vgr.com or vgr@best.com
  16. ;******************************************************************************
  17.  
  18. ;*** System Stuff ***
  19. (set cpu (database "cpu"))  (set vblank (database "vblank"))
  20. (set graphmem (database "graphics-mem")) (set totmem (database "total-mem"))
  21. (set osver (/ (getversion "LIBS:version.library") 65536))
  22. (if (= vblank "60") ((set blank "NTSC")) ((set blank "PAL")))
  23. (set fastmem (- totmem graphmem))
  24.  
  25. (if (= osver 37) (set workbench "2.0")) (if (= osver 38) (set workbench "2.1"))
  26. (if (= osver 39) (set workbench "3.0")) (if (= osver 40) (set workbench "3.1"))
  27. (if (= osver 44) (set workbench "3.5")) 
  28.  
  29. (set cpu (database "cpu"))
  30. (if (exists "sys:libs/68060.library") (set #cpu 5) )
  31. (if (> (exists ("sys:libs/68060.library") (resident)) 0) (set #cpu 5) )
  32. (if (= cpu 68000) (set #cpu 0)) (if (= cpu 68010) (set #cpu 1))
  33. (if (= cpu 68020) (set #cpu 2)) (if (= cpu 68030) (set #cpu 3))
  34. (if (= cpu 68040) (set #cpu 4)) (if (= cpu 68060) (set #cpu 5)) 
  35.  
  36.  
  37. (set vernum1 (getversion "AmIRC"))
  38. (set ver1 (/ vernum1 65536)) (set rev1 (- vernum1 (* ver1 65536) ) )
  39. (set AmIRCver (cat ver1 "." rev1))
  40.  
  41. (if (> (exists ("env:Language")) 0) (set lanfound (getenv "Language")) )
  42. (set lan 0)
  43.  
  44. (if (= "english" lanfound) (set lan 0))  (if (= "deutsch"  lanfound) (set lan 1))
  45. (if (= "français" lanfound) (set lan 2)) (if (= "Español" lanfound) (set lan 3))
  46. (if (= "Svenska" lanfound) (set lan 4))  (if (= "nederlands" lanfound) (set lan 5))
  47. (if (= "italiano" lanfound) (set lan 6)) (if (= "norsk"  lanfound) (set lan 7))
  48. (if (= "português" lanfound) (set lan 8))
  49.  
  50. (set #English    "English")  (set #Deutsch    "Deutsch")
  51. (set #Français   "Français") (set #Español    "Español")
  52. (set #Svenska    "Svenska")  (set #Nederlands "Nederlands")
  53. (set #Italiano   "Italiano") (set #Norsk      "Norsk")    
  54. (set #Português  "Português")
  55.  
  56. (set mfound 0) (set newicon1 1) 
  57. (set keeper 1) (set firsttime 0)
  58.  
  59. ;********************************************************************
  60. ; English Strings
  61. ;********************************************************************
  62. (set #about (cat "\n\nWelcome to AmIRC " AmIRCver "\n\nCopyright © 1995-1999 by\n\nOliver Wagner\n<owagner@vapor.com>\n\nhttp://www.vapor.com/\nftp://ftp.vapor.com/pub/amirc/") )
  63. (set #nomui (cat "\n\nAmIRC uses Magic User Interface (MUI).\n\nThe installer has not found MUI: to be assigned, "
  64.                  "therefore you AmIRC will not work correctly.  You will need to install "
  65.                  "MUI before running AmIRC."
  66.             )
  67. )
  68. (set #whereAmIRC "Where do you wish to install AmIRC. A directory called 'AmIRC' will be created if one is not there. If a copy of AmIRC is found it will be backed up.")
  69. (set muiver "No Version Installed")
  70. (set #newermui "\nAmIRC needs version 3.8 or higher of MUI installed to work correctly.\n\nNow would be a good time to Upgrade!\n\nYou can find mui33usr.lha on Aminet in dev/gui\n\nIt looks like you have: \n\n")
  71. (set #need-os "\n\nThe 68020 version of AmIRC needs version 3.0 or higher of the Amiga OS installed to work correctly.\n\n It looks like you have: \n\n")
  72. (set #000used "\n\nThe 68000 version will be installed.") 
  73. (set #filethere1 "\n\nThe installer has found AmIRC version ")
  74. (set #filethere2 " at ")
  75. (set #filethere3 "\n\nThe file will be renamed to ")
  76. (set #filethere4 " and it will then be moved to ")
  77. (set #backuptoXXX "Back-UP to file named 'AmIRC")
  78. (set #copyover "Copy Over Old Version")
  79. (set #AmIRCfound "\nThe Installer has found a copy of AmIRC already installed. What do you want to do?\n")
  80. (set #askcpu "\nCPU Check: What CPU does the machine have that you are installing AmIRC on? The installer has found:\n")
  81. (set #newicon "\nDo you wish to copy over The AmIRC Icon from the archive? If you have any ToolTypes already set you should select no.\n")
  82. (set #nonewicon  "No  - ToolTypes already set.")
  83. (set #yesnewicon "Yes - Copy over Icon.")
  84. (set #pickicon "\nAmIRC has 3 different icons you can use choose from. Which one would you like to use?\n")
  85. (set #nomultiview (cat "The installer could not find multiview or you are running on a 2.x Amiga. "
  86.                        "The AmIRC Installer will let you choose between 3 different icon to use. Their "
  87.                        "names are:\n\n'AmIRC - Default'\n'AmIRC2 - Globe'\n'AmIRC3 - 4 Faces'\n\n"
  88.                        "You can use a picture viewer to look at the '3Icons.iff' to see the choices side-by-side, "
  89.                        "or you can just look in the drawer from where you are installing AmIRC from."
  90.                   )
  91. )
  92. (set #whatcat "Select the AmIRC Language catalog you wish to install.")
  93. (set #wherecat "\nWhere do you wish to install the AmIRC Language Catalog? Default is ")
  94. (set #catnofind "Can not find this catalog in this AmIRC archive. You may need to get the complete archive from the support site.")
  95. (set #whatdocs "\nWhat AmIRC documentation would you like to install?\n")
  96. (set #wheredocs "Where would you like the AmIRC documentation you selected to be installed? A dir called 'Documentation' will be made there.")
  97. (set #nofounddocs "\n\nThe Docs that are listed below, from the ones that you selected,  were not found in the AmIRC archive. You may need to get the complete archive from the support site.")
  98. (set #whatrexx "What AREXX Commands would you like to install? They will be placed in ")
  99. (set #notinthisarc "(* = Not found in this archive.)")
  100. (set #rexxsize1 ". There is about ")
  101. (set #rexxsize2 "K total of AREXX scripts.\n")
  102. (set #rexx1 "Away        - Away/Back script")
  103. (set #rexx2 "Finger      - AmiTCP finger script")
  104. (set #rexx3 "Leave       - Leave a channel w/msg")
  105. (set #rexx4 "WallChop    - Message all Chops on a channel")
  106. (set #rexx5 "SendBrowser - Sends URLs to Broswers")
  107. (set #rexx6 "ntalk       - Run NTalk")
  108.  
  109. (set #whatsnd "\nWhat Sounds would you like to install? They will be placed in ")
  110. (set #sndsize1 ". There is about ")
  111. (set #sndsize2 "K total of Sound files.\n")
  112. (set #snd1 " Gost Set")
  113. (set #snd2 " Sandro Set")
  114. (set #snd3 " Smkn Set")
  115.  
  116. (set #whatsub "\nWhat Submissions would you like to install? They will be placed in ")
  117. (set #subsize1 ". There is about ")
  118. (set #subsize2 "K total of Submissions files.\n")
  119. (set #sub1 " Extra Icons")
  120. (set #sub2 " Extra ARexx Scripts")
  121. (set #sub3 " Toolmanager Animbrush")
  122.  
  123. (set #oktodelete1 "\nIs it ok to delete the older AmIRC binary so that the AmIRC Directory can be made?\n")
  124. (set #oktodelete2 "\nIs it ok to delete the older _renamed_ AmIRC binary so that the AmIRC Directory can be made?\n")
  125. (set #ifyoulike (cat "\n\nIf you like AmIRC you might want to take a look at AmFTP.  It Includes the following:\n\nHigh speed asynchronous transfers for maximum efficiency, "
  126.                      "Batch download facility, Resume partially received files, FTP-Server Phonebook, Full ADT Support, Full ARexx support, Archie search engine, "
  127.                      "and much more!\n\nAmFTP can be found on Aminet in comm/tcp or\nhttp://www.vapor.com/amftp/"
  128.                 )
  129. )
  130. (set #byebye (cat "\nAmIRC 3 Install Complete!\n\n" ))
  131.  
  132. (set #updatingmuic "\nUpdating the MUI Classes if needed.\n\n(#?.mcc & #?.mcp)")
  133. (set #newermui "\nAmIRC needs version 3.8 or higher of MUI installed to work correctly.\n\nNow would be a good time to Upgrade!\n\nYou can find the new MUI on Aminet in util/libs\n\nIt looks like you have: \n\n")
  134. (set #nompc "\nThe .MCC files for AmIRC can not be installed to 'mui:libs/mui'")
  135.  
  136. (set #insregstuff " Install Register information")
  137. (set #insregstuffno " Don't Install Register information")
  138. (set #installerreg "\nThe installer did not find an AmIRC key in the usual places. Do you wish to install the Register information?\n") 
  139.  
  140. (set #wheremp "\nWhere do you wish to install the MimePrefs program?\n")
  141.  
  142. (set #updatedlibs "\nInstall/Update the Vapor Libraries?\n* = Must be installed to work correctly\n(Click 'Help' for more info on the libs.)\n")
  143. (set #lib1 " Update library")
  144. (set #lib2 " Toolkit library (*)")
  145. (set #lib3 " Registration library(*)")
  146. (set #libhelp1 "vapor_update.library:\nIf installed every Vapor app will automagically check for updates by querying the Vapor server via Internet. You will be informed and offered automatic downloading if there is an update.")
  147. (set #libhelp2 "\n\nvapor_toolkit.library:\nContains support functions which are used by most Vapor applications and thus can be shared to reduce individual application code size. ie: Async I/O library, crytographically strong random number generator, math support.")
  148. (set #libhelp3 "\n\nvapor_registration.library:\nContains the core code for the registration utility\n")
  149. (set #wherelibs "Where do you wish to place the Vapor lib(s), 'Libs:' is default.")
  150. (set #flushing "\n\nRunning:\n\n'avail flush >NIL:'\n\n to try to flush old Vapor libraries from memory.")
  151.  
  152. (set #no020bin "\n\nYou selected a CPU higher then a 68010 so you could use the 68020 version of AmIRC.\n\nThe 68020 version of AmIRC, the 'AmIRC020' file, was not found is this archive.\n\nThe 'AmIRC' file will be installed.")
  153.  
  154. (set #need000archive1 "\n(or you selected 68000 or 68010 as your CPU)\n\nAs of AmIRC 3.2 the main archive will only have a version of the binary for OS3.0 or OS3.1 and needs to have a 68020 CPU or higher. You can get the 68000 archive at the following addresses:\n\nhttp://www.vapor.com/\nftp://ftp.vapor.com/pub/amirc/")
  155. (set #need000archive2 "\n\nPress 'Proceed' and the installer will updated the other parts needed to run AmIRC")
  156. (set #need000archiveA "The installer found AmigaOS: ")
  157. (set #need000archiveB " & CPU: ") 
  158.  
  159. ;********************************************************************
  160. ; Hello
  161. ;********************************************************************
  162. (message #about)
  163. (welcome) 
  164.  
  165. ;********************************************************************
  166. ; MUI installed?
  167. ;********************************************************************
  168. (if (< (exists "mui:") 2)  (message #nomui) )
  169.  
  170. ;********************************************************************
  171. ; Check on New installer 
  172. ;********************************************************************
  173. (set #updateinstaller "\nJust to let you know ESCOM AG has released a new version of the installer program.\n\n\nVersion 43.3 can be found on Aminet in:\n\n/util/misc/Installer-43_3.lha\n\n\nYou might want to upgrade soon, if you can. The AmIRC installer will need it. Older installers might fail.")
  174. (set InstallerVer 0)
  175. (set vernum1 @installer-version) (set ver1 (/ vernum1 65536)) 
  176. (set rev1 (- vernum1 (* ver1 65536) ) ) (set InstallerVer (cat ver1 "." rev1))
  177. (set current_installer "43.3")
  178. (if (< InstallerVer current_installer) (message #updateinstaller) )
  179.  
  180.  
  181. ;********************************************************************
  182. ; Check Last ENV
  183. ;********************************************************************
  184. (if (> (exists "env:Vapor/AmIRC_LASTUSEDDIR") 0) 
  185.  (
  186.   (set lastdir (getenv "Vapor/AmIRC_LASTUSEDDIR"))
  187.   (set lastdirlen (strlen lastdir))
  188.   (set tricklen (+ 1 (strlen (fileonly lastdir))))
  189.   (set lastdir (substr lastdir 0 (- lastdirlen tricklen) ) )
  190.   (if (= 0 (exists lastdir (noreq))) (set lastdir (cat lastdir ":"))) 
  191.  )
  192.  (set lastdir 0)
  193. )
  194.  
  195.  
  196. ;********************************************************************
  197. ; Ask where to put AmIRC & Make dir if needed
  198. ;********************************************************************
  199. (set Package (getassign "AmiTCP"))
  200. (if (= Package "") (set Package (getassign "Inet")) )
  201. (if (<> lastdir 0) (set Package lastdir))
  202.  
  203. (set AmIRCdir  (askdir (prompt #whereAmIRC)
  204.                (help   #whereAmIRC)
  205.                     (default Package)
  206.                )  
  207. )
  208.  
  209. (set where AmIRCdir)
  210.  
  211. (if (= 1 (exists (tackon where "AmIRC") ) ) 
  212.   (
  213.     (set vernum1 (getversion (tackon where "AmIRC") ))
  214.     (set ver1 (/ vernum1 65536)) (set rev1 (- vernum1 (* ver1 65536) ) )
  215.     (set AmIRC_old (cat ver1 "." rev1))
  216.  
  217.     (message (cat #filethere1 ver1 "." rev1 #filethere2 where #filethere3 
  218.                   (cat "AmIRC" AmIRC_old) #filethere4 (tackon AmIRCdir "AmIRC") )
  219.     )
  220.     
  221.  
  222.     (copyfiles (source (tackon where "AmIRC"))
  223.                (dest where) 
  224.                (infos)
  225.                (newname (cat "AmIRC" AmIRC_old))
  226.     )
  227.     
  228.     (delete (tackon AmIRCdir "AmIRC") (prompt #oktodelete1) (help #oktodelete1) (confirm) (infos)) 
  229.     
  230.  
  231.     (if (< (exists (tackon AmIRCdir "AmIRC")) 2) (makedir (tackon AmIRCdir "AmIRC") (infos)) )    
  232.  
  233.     (copyfiles (source (tackon where (cat "AmIRC" AmIRC_old) ))
  234.                        (dest (tackon AmIRCdir "AmIRC")) 
  235.                        (infos)
  236.                
  237.     )
  238.  
  239.     (delete (tackon where (cat "AmIRC" AmIRC_old)) (prompt #oktodelete2) (help #oktodelete2) (confirm) (infos) ) 
  240.  
  241.     ;(set firsttime 1)
  242.  
  243.   )
  244. )
  245.  
  246. (if (< (exists (tackon AmIRCdir "AmIRC")) 2) (makedir (tackon AmIRCdir "AmIRC") (infos)) )
  247.  
  248. ;********************************************************************
  249. ; copy rooticon if there
  250. ;********************************************************************
  251. (set pathI @icon)  (set pathIlen (strlen pathI))
  252. (set Inamelen (fileonly @icon))
  253. (set Inamelen (+ (strlen Inamelen) 1) )
  254. (set pathI (substr pathI 0 (- pathIlen Inamelen) ) )
  255.  
  256. (if (exists (cat pathI ".info"))
  257.   (copyfiles (source (cat pathI ".info")) (dest (tackon "/" where)) (newname "AmIRC.info") (optional "nofail") ) 
  258. )
  259.  
  260. (set where (tackon AmIRCdir "AmIRC"))
  261. (set @default-dest where)
  262.  
  263.  
  264.  
  265. ;********************************************************************
  266. ; Double Check on the CPU
  267. ;********************************************************************
  268. (set cpuPick (askchoice (choices "68000" "68010" "68020" "68030"
  269.                          "68040" "68060"
  270.                 )
  271.              (prompt #askcpu)
  272.                      (help   #askcpu)
  273.                    (default #cpu)
  274.       )
  275. )
  276.  
  277. ;********************************************************************
  278. ; Check for AmIRC020 requs
  279. ;********************************************************************
  280. (set ver 0)
  281. (if (exists "mui:mui") 
  282.  (
  283.   (set vernum (getversion "mui:mui") )
  284.   (set ver (/ vernum 65536)) (set rev (- vernum (* ver 65536) ) )
  285.  
  286.   (if (= ver 7) (set muiver "2.0") )   (if (= ver 8) (set muiver "2.1") )
  287.   (if (= ver 9) (set muiver "2.2") )   (if (= ver 10) (set muiver "2.3") )
  288.   (if (= ver 11) (set muiver "3.0") )  (if (= ver 12) (set muiver "3.1") )
  289.   (if (= ver 13) (set muiver "3.2") )  (if (= ver 14) (set muiver "3.3") )
  290.   (if (= ver 15) (set muiver "3.4") )  (if (= ver 16) (set muiver "3.5") )
  291.   (if (= ver 17) (set muiver "3.6") )  (if (= ver 18) (set muiver "3.7") )
  292.   (if (= ver 19) (set muiver "3.8") )  (if (= ver 20) (set muiver "3.9") )
  293.   (if (= ver 21) (set muiver "4.0") )  (if (= ver 22) (set muiver "4.1") )
  294.  )
  295. )
  296.  
  297. (if (< ver 19)   ( (message (cat #newermui muiver))   (set cpuPick 0) ))
  298. (if (< osver 39) ( (message (cat #need-os workbench #000used)) (set cpuPick 0) ))
  299.  
  300. ;********************************************************************
  301. ; Check for old & backup
  302. ;********************************************************************
  303. (if (exists (tackon where "AmIRC")) 
  304.   (
  305.       (set vernum1 (getversion (tackon where "AmIRC") ))
  306.       (set ver1 (/ vernum1 65536)) (set rev1 (- vernum1 (* ver1 65536) ) )
  307.       (set AmIRC_old (cat ver1 "." rev1))
  308.  
  309.       (set keeper  (askchoice (choices  (cat #backuptoXXX AmIRC_old "'")  #copyover)
  310.                      (prompt #AmIRCfound)
  311.                  (help   #AmIRCfound)
  312.                      (default 0)
  313.                )
  314.       )    
  315.  
  316.  
  317.       (if (= keeper 0)
  318.          (copyfiles (source (tackon where "AmIRC"))
  319.                      (dest where) 
  320.                      (infos)
  321.                      (newname (cat "AmIRC" AmIRC_old))
  322.          )
  323.       )          
  324.  
  325.       (set firsttime 1)
  326.     
  327.   )
  328. )
  329.  
  330. ;********************************************************************
  331. ; Copy over correct AmIRC and Icon if wanted
  332. ;********************************************************************
  333. ;(if (AND ( > cpuPick 1) (= (exists "AmIRC020") 0) )
  334. ; ( (set amirccpu "") (message #no020bin) )
  335. ;)
  336. ;(if (AND ( > cpuPick 1) (exists "AmIRC020") )
  337. ; (set amirccpu "020")
  338. ;)
  339.  
  340. (set amirccpu "")
  341.  
  342. (if (OR (< cpuPick 2) (< osver 39))
  343.  (message (cat #need000archiveA workbench #need000archiveB cpu #need000archive1 #need000archive2))
  344.  
  345.  (copyfiles (source (cat "AmIRC" amirccpu)) (dest where) (optional "nofail") )
  346. )
  347.  
  348.  
  349.  
  350.  
  351.  
  352. (if (= firsttime 0)  (copyfiles (source "AmIRC.info") (dest where) (optional "nofail") ) )
  353.  
  354.  
  355. (if (= keeper 0) 
  356.   (
  357.    (set newicon (askchoice (choices #yesnewicon #nonewicon)
  358.                            (prompt #newicon)
  359.                        (help   #newicon)
  360.                            (default 0)
  361.             )
  362.    )
  363.   
  364.    (if (= newicon 0) 
  365.      (copyfiles (source "AmIRC.info") (dest where)  (optional "nofail") )
  366.    )
  367.  
  368.   )
  369. )
  370.  
  371. (if (exists ("RegisterAmIRC"))
  372.  (copyfiles (source "RegisterAmIRC") (dest where)  (infos) (optional "nofail") )
  373. )
  374.  
  375. ;********************************************************************
  376. ; Copy MimePrefs
  377. ;********************************************************************
  378. (if (exists "MimePrefs")  
  379.  (
  380.   (if (exists "sys:prefs/MimePrefs" (noreq)) (set mpguess 1) (set mpguess 0))
  381.  
  382.   (set wheremp  (askchoice (choices where "SYS:Prefs")
  383.                            (prompt (cat #wheremp "\n"))
  384.                       (help   #wheremp)
  385.                         (default mpguess)
  386.                 )  
  387.   )
  388.  
  389.   (if (= wheremp 0) (set destmp where) (set destmp "SYS:Prefs"))
  390.  
  391.  
  392.   (if (exists (tackon destmp "MimePrefs.info"))  
  393.    (copylib (source "MimePrefs") (dest destmp) (optional "nofail") ) 
  394.    (copylib (source "MimePrefs") (dest destmp) (infos) (optional "nofail") ) 
  395.   )
  396.  
  397.  )
  398. )
  399.  
  400. ;********************************************************************
  401. ; Select and copy over AmIRC Catalog
  402. ;********************************************************************
  403. (if (> (exists "catalogs") 0) 
  404. (
  405. (set XX 0) (set lan 0)
  406. (foreach "Catalogs" "#?"
  407.  (
  408.   (set XX (+ XX 1)) 
  409.   (textfile (dest (cat "ENV:i.høld." XX)) (append @each-name) ) 
  410.   (if (= lanfound @each-name) (set lan XX))
  411.  
  412.   (if (OR (= (patmatch "#?.c#?" @each-name) 1)  (= (patmatch "#?.read#?" @each-name) 1)) 
  413.      ( (delete (cat "ENV:i.høld." XX)) (set XX (- XX 1))  )
  414.   )
  415.  
  416.  )
  417. )
  418.  
  419. (set l1 "N/A") (set l2 "N/A") (set l3 "N/A") (set l4 "N/A") (set l5 "N/A")
  420. (set l6 "N/A") (set l7 "N/A") (set l8 "N/A") (set l9 "N/A") (set l10 "N/A")
  421. (set l11 "N/A") (set l12 "N/A") (set l13 "N/A") (set l14 "N/A") (set l15 "N/A") 
  422. (set l16 "N/A") (set l17 "N/A") (set l18 "N/A") (set l19 "N/A") (set l20 "N/A") 
  423.  
  424. (set l0 "English")
  425. (if (> (exists ("ENV:i.høld.1")) 0)   (set l1 (getenv "ENV:i.høld.1")) ) (if (> (exists ("ENV:i.høld.2")) 0)   (set l2 (getenv "ENV:i.høld.2")) )
  426. (if (> (exists ("ENV:i.høld.3")) 0)   (set l3 (getenv "ENV:i.høld.3")) ) (if (> (exists ("ENV:i.høld.4")) 0)   (set l4 (getenv "ENV:i.høld.4")) )
  427. (if (> (exists ("ENV:i.høld.5")) 0)   (set l5 (getenv "ENV:i.høld.5")) ) (if (> (exists ("ENV:i.høld.6")) 0)   (set l6 (getenv "ENV:i.høld.6")) )
  428. (if (> (exists ("ENV:i.høld.7")) 0)   (set l7 (getenv "ENV:i.høld.7")) ) (if (> (exists ("ENV:i.høld.8")) 0)   (set l8 (getenv "ENV:i.høld.8")) )
  429. (if (> (exists ("ENV:i.høld.9")) 0)   (set l9 (getenv "ENV:i.høld.9")) ) (if (> (exists ("ENV:i.høld.10")) 0) (set l10 (getenv "ENV:i.høld.10")) )
  430. (if (> (exists ("ENV:i.høld.11")) 0) (set l11 (getenv "ENV:i.høld.11")) )(if (> (exists ("ENV:i.høld.12")) 0) (set l12 (getenv "ENV:i.høld.12")) )
  431. (if (> (exists ("ENV:i.høld.12")) 0) (set l13 (getenv "ENV:i.høld.13")) )(if (> (exists ("ENV:i.høld.14")) 0) (set l14 (getenv "ENV:i.høld.14")) )
  432. (if (> (exists ("ENV:i.høld.15")) 0) (set l15 (getenv "ENV:i.høld.15")) )(if (> (exists ("ENV:i.høld.16")) 0) (set l16 (getenv "ENV:i.høld.16")) )
  433. (if (> (exists ("ENV:i.høld.17")) 0) (set l17 (getenv "ENV:i.høld.17")) )(if (> (exists ("ENV:i.høld.18")) 0) (set l18 (getenv "ENV:i.høld.18")) )
  434. (if (> (exists ("ENV:i.høld.19")) 0) (set l19 (getenv "ENV:i.høld.19")) )(if (> (exists ("ENV:i.høld.20")) 0) (set l20 (getenv "ENV:i.høld.20")) )
  435. (run "delete env:i.høld.#?")
  436.  
  437. (set catalog (askchoice (choices l0 l1 l2 l3 l4 l5 l6 l7 l8 l9 l10 l11 l12 l13 l14 l15 l16 l17 l18 l19)            
  438.                         (prompt #whatcat)
  439.                     (help   #whatcat)
  440.                         (default lan)
  441.              )
  442. )
  443.  
  444. (if (= catalog 0)  (set #lcat l0))  
  445. (if (= catalog 1)  (set #lcat l1))  (if (= catalog 2)  (set #lcat l2))  (if (= catalog 3)  (set #lcat l3))  
  446. (if (= catalog 4)  (set #lcat l4))  (if (= catalog 5)  (set #lcat l5))  (if (= catalog 5)  (set #lcat l5))
  447. (if (= catalog 6)  (set #lcat l6))  (if (= catalog 7)  (set #lcat l7))  (if (= catalog 8)  (set #lcat l8))  
  448. (if (= catalog 9)  (set #lcat l9))  (if (= catalog 10) (set #lcat l10)) (if (= catalog 11) (set #lcat l11))
  449. (if (= catalog 12) (set #lcat l12)) (if (= catalog 13) (set #lcat l13)) (if (= catalog 14) (set #lcat l14)) 
  450. (if (= catalog 15) (set #lcat l15)) (if (= catalog 16) (set #lcat l16)) (if (= catalog 17) (set #lcat l17))
  451. (if (= catalog 18) (set #lcat l18)) (if (= catalog 19) (set #lcat l19)) (if (= catalog 20) (set #lcat l20))
  452.  
  453. (if (AND (<> catalog 0) (<> #lcat "N/A"))
  454.  (
  455.   (if (> (exists (cat "Catalogs/" #lcat "/amirc.catalog")) 0)
  456.     (
  457.         (set wherecat  (askchoice (choices (tackon where (cat "Catalogs/" #lcat)) (cat "Locale:Catalogs/" #lcat) )
  458.                                   (prompt (cat #wherecat (tackon where (cat "Catalogs/" #lcat)) "\n"))
  459.                             (help   #wherecat)
  460.                                (default 0)
  461.                        )  
  462.         )
  463.  
  464.       (if (= wherecat 1)
  465.         (
  466.          (if (< (exists "Locale:") 2) ( (makedir "sys:Locale") (makeassign "Locale" "sys:Locale") ) )
  467.          (if (< (exists "Locale:Catalogs") 2) (makedir "sys:Locale/Catalogs") )
  468.          (if (< (exists (cat "Locale:Catalogs/" #lcat)) 2) (makedir (cat "sys:Locale/Catalogs/" #lcat)) )
  469.          (copylib (source (cat "Catalogs/" #lcat "/amirc.catalog")) (dest (cat "sys:Locale/Catalogs/" #lcat)) )
  470.         )
  471.   
  472.         (
  473.          (if (< (exists (tackon where "Catalogs")) 2) (makedir (tackon where "Catalogs")) )
  474.          (if (< (exists (tackon where (cat "Catalogs/" #lcat)) ) 2) (makedir (tackon where (cat "Catalogs/" #lcat)) ) )
  475.          (copylib (source (cat "Catalogs/" #lcat "/amirc.catalog")) (dest (tackon where (cat "Catalogs/" #lcat)) ) (optional "nofail") )
  476.          (if (exists "Catalogs.info")
  477.            (copyfiles (source "Catalogs.info") (dest where) (optional "nofail") ) 
  478.          )
  479.         )
  480.       )
  481.  
  482.     )
  483.  
  484.     (message (cat "\nCatalogs/" #lcat "/amirc.catalog\n\n" #catnofind))
  485.   )
  486.  
  487.  )
  488. )
  489. ); End if Catalog dir
  490. ); 
  491.  
  492. ;********************************************************************
  493. ; Copy update Lib if wanted 
  494. ;********************************************************************
  495. (set deflibs 7)
  496. (if (> (exists "libs") 0)
  497.  (
  498.   (set deflibs 0)
  499.   (if (> (exists (tackon "libs" "vapor_update.library")) 0)       (set deflibs (+ deflibs 1)))
  500.   (if (> (exists (tackon "libs" "vapor_toolkit.library")) 0)      (set deflibs (+ deflibs 2)))
  501.   (if (> (exists (tackon "libs" "vapor_registration.library")) 0) (set deflibs (+ deflibs 4)))
  502.  
  503.   (set libPick (askoptions (choices #lib1 #lib2 #lib3)
  504.               (prompt #updatedlibs)
  505.                       (help   (cat #libhelp1 #libhelp2 #libhelp3))
  506.                     (default deflibs)
  507.            )
  508.   )
  509.  
  510.   (if (> libPick 0)
  511.    (
  512.     (set wherelibs (askdir (prompt #wherelibs)
  513.                   (help   #wherelibs)
  514.                        (default "LIBS:")
  515.                    )  
  516.     )
  517.     
  518.     (if (IN libPick 0)
  519.      (if (> (exists (tackon "libs" "vapor_update.library")) 0)
  520.       (copylib (source (tackon "libs" "vapor_update.library")) (dest wherelibs) (optional "nofail"))  
  521.      )
  522.     )
  523.  
  524.     (if (IN libPick 1)
  525.      (if (> (exists (tackon "libs" "vapor_toolkit.library")) 0)
  526.       (copylib (source (tackon "libs" "vapor_toolkit.library")) (dest wherelibs) (optional "nofail"))  
  527.      )
  528.     )
  529.  
  530.     (if (IN libPick 2)
  531.      (if (> (exists (tackon "libs" "vapor_registration.library")) 0)
  532.       (copylib (source (tackon "libs" "vapor_registration.library")) (dest wherelibs) (optional "nofail"))  
  533.      )
  534.     )
  535.  
  536.    (working #flushing)
  537.    (run "avail flush > NIL:")
  538.    (run "avail flush > NIL:")
  539.    (run "avail flush > NIL:")
  540.  
  541.    )
  542.  
  543.   )
  544.  )
  545. )
  546.  
  547.  
  548. ;********************************************************************
  549. ; Ask and and copy docs if wanted!
  550. ;********************************************************************
  551. (set nodocs 0)
  552.  
  553. (set docs (askoptions (choices "AmIRC.readme" "AmIRC.guide" "AmIRC.doc (text file)" )  ;;"HTML Documentation"
  554.               (prompt #whatdocs)
  555.                       (help #whatdocs)
  556.                   (default 7)
  557.       )
  558. )
  559.  
  560.  
  561.  
  562. (if (<> docs 0)
  563.  (
  564.    (set docsdir (askdir (prompt #wheredocs)
  565.                (help   #wheredocs)
  566.                     (default where)
  567.                 )  
  568.    )
  569.  
  570.  
  571.    (if (> (exists "AmIRC.readme") 0) 
  572.     (if (IN docs 0) (copyfiles (source "AmIRC.readme") (dest docsdir) (infos) (optional "nofail") ) )
  573.     ( (set #nofounddocs (cat #nofounddocs "\n\nAmIRC.readme")) (set nodocs 1) )
  574.    )
  575.  
  576.  
  577.    (if (exists "Documentation/AmIRC.guide") 
  578.     (
  579.      (if (IN docs 1) 
  580.       (
  581.        (if (< (exists (tackon where "Documentation")) 2) (makedir (tackon where "Documentation"))  )
  582.        (if (exists "Documentation.info")
  583.           (copyfiles (source "Documentation.info") (dest where) (optional "nofail") ) 
  584.        )
  585.        (copyfiles (source "Documentation/AmIRC.guide") (dest (tackon docsdir "Documentation")) (infos) (optional "nofail") ) 
  586.       )
  587.       
  588.       ( (set #nofounddocs (cat #nofounddocs "\n\nAmIRC.guide")) (set nodocs 1) )
  589.      )
  590.     )
  591.    )
  592.  
  593.  
  594.   (if (exists "Documentation/AmIRC.doc") 
  595.     (
  596.      (if (IN docs 2) 
  597.       (
  598.        (if (< (exists (tackon where "Documentation")) 2) (makedir (tackon where "Documentation"))  )
  599.        (if (exists "Documentation.info")
  600.           (copyfiles (source "Documentation.info") (dest where) (optional "nofail") ) 
  601.        )
  602.        (copyfiles (source "Documentation/AmIRC.doc") (dest (tackon docsdir "Documentation")) (infos) (optional "nofail") ) 
  603.       )
  604.       
  605.       ( (set #nofounddocs (cat #nofounddocs "\n\nAmIRC.doc")) (set nodocs 1) )
  606.      )
  607.     )
  608.   )
  609.  
  610.  
  611.    (if (> (exists "Documentation") 0) 
  612.     (if (IN docs 3) 
  613.      (
  614.          (if (< (exists (tackon where "Documentation")) 2) (makedir (tackon where "Documentation"))  )
  615.          (if (exists "Documentation.info")
  616.             (copyfiles (source "Documentation.info") (dest where) (optional "nofail") ) 
  617.          )
  618.  
  619.          (if (< (exists (tackon where "Documentation/Pics")) 2) (makedir (tackon where "Documentation/Pics"))  )
  620.          (if (exists "Documentation/Pics.info")
  621.             (copyfiles (source "Documentation/Pics.info") (dest (tackon where "Documentation")) (optional "nofail"))
  622.          )
  623.   
  624.          (foreach "Documentation" "#?.html"
  625.           (if (< @each-type 0)
  626.             (copyfiles (source (tackon "Documentation" @each-name)) (dest (tackon where "Documentation")) (infos) (optional "nofail") ) 
  627.           )
  628.          )
  629.  
  630.          (foreach "Documentation/Pics" "#?.gif"
  631.            (copyfiles (source (tackon "Documentation/Pics" @each-name)) (dest (tackon where "Documentation/Pics")) (infos) (optional "nofail") ) 
  632.          )
  633.      )
  634.     )       
  635.     
  636.     ( (set #nofounddocs (cat #nofounddocs "\n\nAmIRC HTML Docs")) (set nodocs 1) )
  637.    )
  638.  
  639.  
  640.    ;(if (= nodocs 1) (message #nofounddocs) ) 
  641.     
  642.  
  643.  )
  644. )
  645.  
  646. ;********************************************************************
  647. ; OLD Ask and and copy AREXX stuff if wanted!
  648. ;********************************************************************
  649. ;(set size 0)
  650. ;(foreach "rexx" "#?.AMIRX"  (set size (+ size (getsize (tackon "rexx" @each-name)))) )
  651. ;(set sizek (/ size 1024))
  652.  
  653. ;(if (= (exists "rexx/away.AMIRX") 0)        (set #rexx1 (cat #rexx1 "*")) )         
  654. ;(if (= (exists "rexx/Finger.AMIRX") 0)      (set #rexx2 (cat #rexx2 "*")) )      
  655. ;(if (= (exists "rexx/Leave.AMIRX") 0)       (set #rexx3 (cat #rexx3 "*")) )       
  656. ;(if (= (exists "rexx/WallChop.AMIRX") 0)    (set #rexx4 (cat #rexx4 "*")) )    
  657. ;(if (= (exists "rexx/sendbrowser.amirx") 0) (set #rexx5 (cat #rexx5 "*")) ) 
  658. ;(if (= (exists "rexx/ntalk.amirx") 0)       (set #rexx6 (cat #rexx6 "*")) ) 
  659.  
  660. ;(set arexx (askoptions (choices #rexx1 #rexx2 #rexx3 #rexx4 #rexx5 #rexx6)
  661. ;               (prompt (cat #whatrexx (tackon where "rexx") #rexxsize1 sizek #rexxsize2 #notinthisarc) )
  662. ;                       (help (cat #whatrexx (tackon where "rexx") #rexxsize1 sizek #rexxsize2 #notinthisarc) )
  663. ;                   (default 63)
  664. ;       )
  665. ;)
  666.  
  667. ;(if (<> arexx 0)
  668. ; (
  669. ;  (set rexxdir (tackon where "rexx"))
  670. ;  (if (< (exists rexxdir) 2) (makedir rexxdir)  )
  671. ;  (if (AND (IN arexx 0) (exists "rexx/away.AMIRX"))     (copyfiles (source "rexx/away.AMIRX") (dest rexxdir) (infos) (optional "nofail") ) )
  672. ;  (if (AND (IN arexx 1) (exists "rexx/Finger.AMIRX"))    (copyfiles (source "rexx/Finger.AMIRX") (dest rexxdir) (infos) (optional "nofail") ) )
  673. ;  (if (AND (IN arexx 2) (exists "rexx/Leave.AMIRX"))    (copyfiles (source "rexx/Leave.AMIRX") (dest rexxdir) (infos) (optional "nofail") ) )
  674. ;  (if (AND (IN arexx 3) (exists "rexx/WallChop.AMIRX")) (copyfiles (source "rexx/WallChop.AMIRX") (dest rexxdir) (infos) (optional "nofail") ) )
  675. ;  (if (AND (IN arexx 4) (exists "rexx/sendbrowser.amirx")) (copyfiles (source "rexx/sendbrowser.amirx") (dest rexxdir) (infos) (optional "nofail") ) )
  676. ;  (if (AND (IN arexx 4) (exists "rexx/ntalk.amirx"))    (copyfiles (source "rexx/ntalk.amirx") (dest rexxdir) (infos) (optional "nofail") ) )
  677. ; )
  678. ;)
  679.  
  680. ;********************************************************************
  681. ; Copy AREXX stuff 
  682. ;********************************************************************
  683. (if (> (exists "Rexx") 0)
  684.  (
  685.   (if (< (exists (tackon where "Rexx")) 2) (makedir (tackon where "Rexx") (infos)) )    
  686.   (if (exists "Rexx.info")
  687.     (copyfiles (source "Rexx.info") (dest where) (optional "nofail") ) 
  688.   )
  689.  
  690.   (foreach "Rexx" "#?.AMIRX"
  691.     (copyfiles (source (tackon "Rexx" @each-name)) (dest (tackon where "Rexx")) (infos) (optional "nofail") ) 
  692.   )
  693.  
  694.  )
  695. )
  696.  
  697. ;********************************************************************
  698. ; Copy Plugins stuff 
  699. ;********************************************************************
  700. (if (> (exists "Plugins") 0)
  701.  (
  702.   (if (< (exists (tackon where "Plugins")) 2) (makedir (tackon where "Plugins") (infos)) )    
  703.   (if (exists "Plugins.info")
  704.     (copyfiles (source "Plugins.info") (dest where) (optional "nofail") ) 
  705.   )
  706.  
  707.   (foreach "Plugins" "#?.AmIPlug"
  708.     (copyfiles (source (tackon "Plugins" @each-name)) (dest (tackon where "Plugins")) (infos) (optional "nofail") ) 
  709.   )
  710.  
  711.   (foreach "Plugins" "#?_Prefs"
  712.     (copyfiles (source (tackon "Plugins" @each-name)) (dest (tackon where "Plugins")) (infos) (optional "nofail") ) 
  713.   )
  714.  
  715.  )
  716. )
  717.  
  718.  
  719. ;********************************************************************
  720. ; Ask and and copy SOUND stuff if wanted!
  721. ;********************************************************************
  722. (if (> (exists "Sounds") 0)
  723.  (
  724.   (set size 0)
  725.   (foreach "Sounds" "Gost#?"  (set size (+ size (getsize (tackon "Sounds" @each-name)))) )
  726.   (set sizek-gost (/ size 1024))
  727.  
  728.   (set size 0)
  729.   (foreach "Sounds" "Sandro#?"  (set size (+ size (getsize (tackon "Sounds" @each-name)))) )
  730.   (set sizek-sandro (/ size 1024))
  731.  
  732.   (set size 0)
  733.   (foreach "Sounds" "SmKn#?"  (set size (+ size (getsize (tackon "Sounds" @each-name)))) )
  734.   (set sizek-smkn (/ size 1024))
  735.  
  736.   (set sizek (+ sizek-gost (+ sizek-sandro sizek-smkn) ) )
  737.  
  738.   (set snds (askoptions (choices (cat #snd1 " (" sizek-gost "K)")
  739.                                  (cat #snd2 " (" sizek-sandro "K)") 
  740.                                  (cat #snd3 " (" sizek-smkn "K)")
  741.                                  )
  742.                   (prompt (cat #whatsnd (tackon where "Sounds") #sndsize1 sizek #sndsize2) )
  743.                         (help (cat #whatsnd (tackon where "Sounds") #sndsize1 sizek #sndsize2) )
  744.                     (default 7)
  745.         )
  746.   )
  747.  
  748.   (if (<> snds 0)
  749.    (
  750.      (set snddir (tackon where "Sounds"))
  751.      (if (< (exists snddir) 2) (makedir snddir)  )
  752.  
  753.      (if (IN snds 0)
  754.        (foreach "Sounds" "Gost#?"
  755.           (copyfiles (source (tackon "Sounds" @each-name)) (dest snddir) (infos) (optional "nofail") ) 
  756.        )
  757.      )
  758.  
  759.      (if (IN snds 1)
  760.        (foreach "Sounds" "Sandro#?"
  761.          (copyfiles (source (tackon "Sounds" @each-name)) (dest snddir) (infos) (optional "nofail") ) 
  762.        )
  763.      )
  764.  
  765.      (if (IN snds 2)
  766.        (foreach "Sounds" "Smkn#?"
  767.          (copyfiles (source (tackon "Sounds" @each-name)) (dest snddir) (infos) (optional "nofail") ) 
  768.        )
  769.      )
  770.  
  771.    )
  772.   )
  773.  
  774.  
  775.  )
  776. )
  777.  
  778. ;********************************************************************
  779. ; Ask and and copy Submissions stuff if wanted!
  780. ;********************************************************************
  781. (if (> (exists "Submissions") 0)
  782.  (
  783.   (set size 0)
  784.   (foreach "Submissions" "#?.info"  (set size (+ size (getsize (tackon "Submissions" @each-name)))) )
  785.   (set sizek-info (/ size 1024))
  786.  
  787.   (set size 0)
  788.   (foreach "Submissions" "#?.AMIRX"  (set size (+ size (getsize (tackon "Submissions" @each-name)))) )
  789.   (set sizek-rexx (/ size 1024))
  790.  
  791.   (set size 0)
  792.   (foreach "Submissions" "#?.anmb"  (set size (+ size (getsize (tackon "Submissions" @each-name)))) )
  793.   (set sizek-tool (/ size 1024))
  794.  
  795.   (set sizek (+ sizek-info (+ sizek-rexx sizek-tool)))
  796.  
  797.  
  798.   (set sub (askoptions (choices (cat #sub1 " (" sizek-info "K)")
  799.                                 (cat #sub2 " (" sizek-rexx "K)") 
  800.                                 (cat #sub3 " (" sizek-tool "K)")
  801.                        )
  802.                   (prompt (cat #whatsub (tackon where "Submissions") #subsize1 sizek #subsize2) )
  803.                         (help (cat #whatsub (tackon where "Submissions") #subsize1 sizek #subsize2) )
  804.                     (default 7)
  805.         )
  806.   )
  807.  
  808.   (if (<> sub 0)
  809.    (
  810.      (set subdir (tackon where "Submissions"))
  811.      (if (< (exists subdir) 2) (makedir subdir)  )
  812.  
  813.      (if (IN sub 0)
  814.        (foreach "Submissions" "#?.info"
  815.           (copyfiles (source (tackon "Submissions" @each-name)) (dest subdir) (infos) (optional "nofail") ) 
  816.        )
  817.      )
  818.  
  819.      (if (IN sub 1)
  820.        (foreach "Submissions" "#?.AMIRX"
  821.           (copyfiles (source (tackon "Submissions" @each-name)) (dest subdir) (infos) (optional "nofail") ) 
  822.        )
  823.      )
  824.  
  825.      (if (IN sub 2)
  826.        (foreach "Submissions" "#?.anmb"
  827.           (copyfiles (source (tackon "Submissions" @each-name)) (dest subdir) (infos) (optional "nofail") ) 
  828.        )
  829.      )
  830.  
  831.  
  832.  
  833.  
  834.    )
  835.   )
  836.  
  837.  )
  838. )
  839.  
  840. ;********************************************************************
  841. ; Copy over #?.mpc|#?.mcc (Need to be in mui:libs/mui)
  842. ;********************************************************************
  843. (if (exists "MUI") 
  844.  (
  845.    (if (<> (getassign "mui") "")
  846.    (
  847.      (if (> (exists "mui:libs/mui") 0) 
  848.       (
  849.        (working #updatingmuic)
  850.        (foreach "mui" "#?mcp"
  851.            (copylib (source (tackon "mui" @each-name)) (dest "mui:libs/mui") (optional "nofail") ) 
  852.        )
  853.        (foreach "mui" "#?mcc"
  854.            (copylib (source (tackon "mui" @each-name)) (dest "mui:libs/mui") (optional "nofail") ) 
  855.        )
  856.       )
  857.  
  858.       (message (cat #newermui muiver #nompc)) 
  859.      )
  860.    )
  861.    )
  862.  )
  863. )
  864.  
  865. ;********************************************************************
  866. ; copy keyfile if there 
  867. ;********************************************************************
  868. (if (> (exists "amirc-3.key") 0)
  869.  (copyfiles (source "amirc-3.key") (dest where) (infos) (optional "nofail") ) 
  870. )
  871.  
  872.  
  873. ;********************************************************************
  874. ; Reg stuff Register-AmIRC
  875. ;********************************************************************
  876. (procedure checkforkey
  877.  (set foundkey 0) 
  878.  (set kc "amirc-3.key")
  879.  
  880.  (if (exists kc (noreq)) (set foundkey 1) )
  881.  (if (exists (tackon where kc) (noreq)) (set foundkey 1) )
  882.  (if (exists (tackon "s:" kc) (noreq)) (set foundkey 1) )
  883.  (if (exists (tackon "l:" kc) (noreq)) (set foundkey 1) )
  884.  (if (exists (tackon "libs:" kc) (noreq)) (set foundkey 1) )
  885.  (if (exists (tackon "keypath:" kc) (noreq)) (set foundkey 1) )
  886.  (if (exists (tackon "keyfiles:" kc) (noreq)) (set foundkey 1) )
  887.  
  888.  (if (= foundkey 0)
  889.   (set wantkey (askchoice  (choices #insregstuffno #insregstuff)
  890.                        (prompt #installerreg)
  891.                            (help #installerreg)
  892.                        (default 1)
  893.                )
  894.   )
  895.  
  896.   (set wantkey 0)
  897.  )
  898. )
  899.  
  900. (checkforkey)
  901.  
  902. (if (AND (exists "Register-AmIRC") (= wantkey 1))
  903.  (
  904.   (if (< (exists (tackon where "Register-AmIRC")) 2) (makedir (tackon where "Register-AmIRC") (infos)) )    
  905.   (if (exists "Register-AmIRC.info")
  906.     (copyfiles (source "Register-AmIRC.info") (dest where) (optional "nofail") ) 
  907.   )
  908.   (set whereR (tackon where "Register-AmIRC"))
  909.  
  910.  
  911.   (set whatreg  (askchoice (choices "English"  "Deutsch" "Francais" )
  912.                            (prompt "What Registration Files (Language) would you like to install?")
  913.                        (help   "What Registration Files (Language) would you like to install?")
  914.                         (default 0)
  915.                 )  
  916.   )
  917.  
  918.   (if (= whatreg 0) ((set basereg "English")  (set baseregTT "English") ) )
  919.   (if (= whatreg 1) ((set basereg "Deutsch")  (set baseregTT "Deutsch") ) )
  920.   (if (= whatreg 2) ((set basereg "Francais") (set baseregTT "French")  ) )
  921.  
  922.   (if (exists "Register-AmIRC/RegistrationUtility") 
  923.     (copyfiles (source "Register-AmIRC/RegistrationUtility")
  924.                (dest whereR)
  925.                (infos)
  926.     )
  927.   )
  928.  
  929.   ;(if (exists (tackon "Register-AmIRC" (cat "Regtool-" basereg ".info")) )
  930.   ;  (copyfiles (source (tackon "Register-AmIRC" (cat "Regtool-" basereg ".info")) )
  931.   ;             (dest whereR) 
  932.   ;             (newname "RegistrationUtility.info")
  933.   ;  )
  934.   ;)
  935.  
  936.   (if (exists (tackon "Register-AmIRC" (cat "Reg_" basereg ".guide")) ) 
  937.     (copyfiles (source (tackon "Register-AmIRC" (cat "Reg_" basereg ".guide")))
  938.                (dest whereR) 
  939.                (infos)
  940.     )
  941.   )
  942.  
  943.   (if (exists (tackon "Register-AmIRC" (cat "Reg_" basereg ".doc")) )
  944.     (copyfiles (source (tackon "Register-AmIRC" (cat "Reg_" basereg ".doc")))
  945.                (dest whereR) 
  946.                (infos)
  947.     )
  948.   )
  949.  
  950.  
  951.  )
  952. )
  953.  
  954.  
  955. ;********************************************************************
  956. ; Check on Setpatch 
  957. ;********************************************************************
  958. (set #updatesetpatch "\nThe installer looked for 'c:setpatch' and did not find it or you have a version lower then 40.16. AmIRC needs version 40.16 to work correctly. You wany want to upgrade soon. (NOTE: if you keep 'setpatch' in a different place than 'c:' and its 40.16 or higher then this message is void.)")
  959.  
  960. (set vernum1 (getversion "c:setpatch")) (set ver1 (/ vernum1 65536)) 
  961. (set rev1 (- vernum1 (* ver1 65536) ) ) (set setpatchver (cat ver1 "." rev1))
  962. (set current_setpatch "40.16")
  963. (if (< setpatchVer current_setpatch) (message #updatesetpatch) )
  964.  
  965.  
  966. ;********************************************************************
  967. ; AmFTP Plug and End Bye 
  968. ;********************************************************************
  969. ;(message #ifyoulike)
  970. (exit #byebye)
  971.